﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Services;
using System.Xml.Linq;
using System.ServiceModel;
using System.Linq.Expressions;
using SampleApp.Domain;

namespace SampleApp.Web
{
    public partial class TestDataService : DataService<SampleApp.Data.SampleDbContext>
    {
        [QueryInterceptor("SysUserSet")]
        public Expression<Func<SysUser, bool>> OnQuerySysUserSet()
        {
            return (i) => i.UserCode != "Test";
        }

    }
}